package mobi.weq.model;

import java.util.UUID;

/**
 * 
 * <pre>
 * 		id varchar(255) not null,
 * 		username varchar(255) not null, 
 * 		display_name varchar(255),
 * 		password varchar(255) not null, 
 * 		email varchar(255), 
 * 		
 * 		--	respiratory_infections
 * 		--	asthma
 * 		--	allergies
 * 		
 * 		use_user_feedback bit,
 * 		has_lung_problems bit,
 * 		has_heart_problems bit,
 * 		age_group enum("child", "adult", "senior")
 * </pre>
 * 
 * @author MoazzamKhan
 * 
 */
public class User {

	private String id;
	private String username;
	private String displayName = null;
	private String email;

	// need to hash salt password
	private String password;

	/* settings */
	private boolean usingUserFeedback = false;
	private boolean havingLungProblems = false;
	private boolean havingHeartProblems = false;
	private String ageGroup = "unspecified";// ("child", "adult", "senior",
											// "unspecified")

	public User() {
		setUserId(UUID.randomUUID().toString());
	}

	public String getUserId() {
		return id;
	}

	public void setUserId(String id) {
		this.id = id;
	}

	public String getUserName() {
		return username;
	}

	public void setUserName(String username) {
		this.username = username;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getDisplayName() {
		return displayName;
	}

	public void setDisplayName(String displayName) {
		this.displayName = displayName;
	}

	public boolean isUsingUserFeedback() {
		return usingUserFeedback;
	}

	public void setUsingUserFeedback(boolean usingUserFeedback) {
		this.usingUserFeedback = usingUserFeedback;
	}

	public boolean isHavingLungProblems() {
		return havingLungProblems;
	}

	public void setHavingLungProblems(boolean havingLungProblems) {
		this.havingLungProblems = havingLungProblems;
	}

	public boolean isHavingHeartProblems() {
		return havingHeartProblems;
	}

	public void setHavingHeartProblems(boolean havingHeartProblems) {
		this.havingHeartProblems = havingHeartProblems;
	}

	public String getAgeGroup() {
		return ageGroup;
	}

	public void setAgeGroup(String ageGroup) {
		this.ageGroup = ageGroup;
	}

}
